Fix tramp bug with empty explicit path
authorDaniel Colascione <dancol@dancol.org>
Thu, 27 Feb 2014 05:11:50 +0000 (21:11 -0800)
committerDaniel Colascione <dancol@dancol.org>
Thu, 27 Feb 2014 05:11:50 +0000 (21:11 -0800)
lisp/ChangeLog
lisp/net/tramp-sh.el

index c7de55acee49d7c05ff2b1ab19bc44801f8cd072..e89662a84594d7ede5a83f35cd8efacf4b03b4f2 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-27  Daniel Colascione  <dancol@dancol.org>
+
+       * net/tramp-sh.el (tramp-get-remote-path): Don't signal error when
+       explicit tramp path is empty.
+
 2014-02-26  Glenn Morris  <rgm@gnu.org>
 
        * startup.el (command-line): Don't init the tty in daemon mode.
index 37e212970ce502ba8f622230482ba31ea26b7aa6..04109f9816c55e85c2442b3b787bb15172b0dab5 100644 (file)
@@ -4846,7 +4846,7 @@ Return ATTR."
       (when elt1
        (setcdr elt1
                (append
-                (tramp-compat-split-string default-remote-path ":")
+                (tramp-compat-split-string (or default-remote-path "") ":")
                 (cdr elt1)))
        (setq remote-path (delq 'tramp-default-remote-path remote-path)))
 
@@ -4854,7 +4854,7 @@ Return ATTR."
       (when elt2
        (setcdr elt2
                (append
-                (tramp-compat-split-string own-remote-path ":")
+                (tramp-compat-split-string (or own-remote-path "") ":")
                 (cdr elt2)))
        (setq remote-path (delq 'tramp-own-remote-path remote-path)))